/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package controller;

import da.AccountAcction;
import entities.Account;
import java.math.BigDecimal;
import javax.ejb.Stateless;

/**
 *
 * @author QUY_THI
 */
@Stateless
public class AccountTransfer implements AccountTransferRemote, AccountTransferLocal {

    public boolean transfer(Account accountSend, Account accountRecive, BigDecimal amount) {
        boolean check = false;
        AccountAcction ac = new AccountAcction();
        boolean accountTransfer = ac.accountTransfer(accountSend, amount, accountRecive);
        if (accountTransfer) {
            check = true;
        }
        return check;
    }
}
